package ronglei.day01.demo05suijilei;

import java.util.Random;

/*
* 根据变了n的值 来获取随机数 范围是【1-n】可以取1和n
* */
public class suijishu01 {
    public static void main(String[] args) {
            SuiJiShu(6);
    }
    public static  void   SuiJiShu(int a){
        Random sr = new Random();
        for (int i = 0; i < a; i++) {
            int num = sr.nextInt(a)+1;
            System.out.println(num);
        }
    }
}
